//
//  BanBu_WatermarkView.m
// Halfarea
//
//  Created by Wang Xj on 14-1-7.
//
//

#import "BanBu_WatermarkView.h"

@implementation BanBu_WatermarkView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.backgroundColor = [UIColor clearColor];
        
        //图片
        _imageView = [[UIImageView alloc]initWithFrame:frame];
        _imageView.userInteractionEnabled = YES;
        _imageView.backgroundColor = [UIColor clearColor];
        
        [self addSubview:_imageView];
        
        //第一个lable
        _textLabel1 = [[UILabel alloc]init];
        _textLabel1.userInteractionEnabled = YES;
        _textLabel1.backgroundColor = [UIColor clearColor];
        _textLabel1.textColor = [UIColor whiteColor];
        [self addSubview:_textLabel1];
        
        _textLabel2 = [[UILabel alloc]init];
        _textLabel2.userInteractionEnabled = YES;
        _textLabel2.backgroundColor = [UIColor clearColor];
        _textLabel2.textColor = [UIColor whiteColor];
        [self addSubview:_textLabel2];
        
        _textLabel3 = [[UILabel alloc]init];
        _textLabel3.userInteractionEnabled = YES;
        _textLabel3.backgroundColor = [UIColor clearColor];
        _textLabel3.textColor = [UIColor whiteColor];
        [self addSubview:_textLabel3];
    }
    return self;
}
-(void)viewWillAppear:(BOOL)animated
{
//    [super viewWillAppear:animated];
    [UIView setAnimationsEnabled:YES];
}
#pragma mark - 设置ImageView的frame
-(void)initWithImageView:(CGRect)frame
{
    _imageView.frame = frame;
}

#pragma mark - 设置Label的frame
//设置Label的frame
-(void)initWithText1:(CGRect)frame
{
    _textLabel1.frame = frame;
}

-(void)initWithText2:(CGRect)frame
{
    _textLabel2.frame = frame;
}

-(void)initWithText3:(CGRect)frame
{
    _textLabel3.frame = frame;
}

-(void)dealloc
{
    [_imageView release],_imageView = nil;
    [_imagePath release],_imagePath = nil;
    [_folderName release],_folderName = nil;
    [_textLabel1 release],_textLabel1 = nil;
    [_textLabel2 release],_textLabel2 = nil;
    [_textLabel3 release],_textLabel3 = nil;
    [super dealloc];
}


@end
